package com.pojo;

import java.util.ArrayList;
import java.util.List;

public class JdWarehouseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JdWarehouseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andW_numIsNull() {
            addCriterion("w_num is null");
            return (Criteria) this;
        }

        public Criteria andW_numIsNotNull() {
            addCriterion("w_num is not null");
            return (Criteria) this;
        }

        public Criteria andW_numEqualTo(Integer value) {
            addCriterion("w_num =", value, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numNotEqualTo(Integer value) {
            addCriterion("w_num <>", value, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numGreaterThan(Integer value) {
            addCriterion("w_num >", value, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numGreaterThanOrEqualTo(Integer value) {
            addCriterion("w_num >=", value, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numLessThan(Integer value) {
            addCriterion("w_num <", value, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numLessThanOrEqualTo(Integer value) {
            addCriterion("w_num <=", value, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numIn(List<Integer> values) {
            addCriterion("w_num in", values, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numNotIn(List<Integer> values) {
            addCriterion("w_num not in", values, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numBetween(Integer value1, Integer value2) {
            addCriterion("w_num between", value1, value2, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_numNotBetween(Integer value1, Integer value2) {
            addCriterion("w_num not between", value1, value2, "w_num");
            return (Criteria) this;
        }

        public Criteria andW_idIsNull() {
            addCriterion("w_id is null");
            return (Criteria) this;
        }

        public Criteria andW_idIsNotNull() {
            addCriterion("w_id is not null");
            return (Criteria) this;
        }

        public Criteria andW_idEqualTo(Integer value) {
            addCriterion("w_id =", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idNotEqualTo(Integer value) {
            addCriterion("w_id <>", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idGreaterThan(Integer value) {
            addCriterion("w_id >", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("w_id >=", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idLessThan(Integer value) {
            addCriterion("w_id <", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idLessThanOrEqualTo(Integer value) {
            addCriterion("w_id <=", value, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idIn(List<Integer> values) {
            addCriterion("w_id in", values, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idNotIn(List<Integer> values) {
            addCriterion("w_id not in", values, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idBetween(Integer value1, Integer value2) {
            addCriterion("w_id between", value1, value2, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_idNotBetween(Integer value1, Integer value2) {
            addCriterion("w_id not between", value1, value2, "w_id");
            return (Criteria) this;
        }

        public Criteria andW_nameIsNull() {
            addCriterion("w_name is null");
            return (Criteria) this;
        }

        public Criteria andW_nameIsNotNull() {
            addCriterion("w_name is not null");
            return (Criteria) this;
        }

        public Criteria andW_nameEqualTo(String value) {
            addCriterion("w_name =", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameNotEqualTo(String value) {
            addCriterion("w_name <>", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameGreaterThan(String value) {
            addCriterion("w_name >", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameGreaterThanOrEqualTo(String value) {
            addCriterion("w_name >=", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameLessThan(String value) {
            addCriterion("w_name <", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameLessThanOrEqualTo(String value) {
            addCriterion("w_name <=", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameLike(String value) {
            addCriterion("w_name like", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameNotLike(String value) {
            addCriterion("w_name not like", value, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameIn(List<String> values) {
            addCriterion("w_name in", values, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameNotIn(List<String> values) {
            addCriterion("w_name not in", values, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameBetween(String value1, String value2) {
            addCriterion("w_name between", value1, value2, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_nameNotBetween(String value1, String value2) {
            addCriterion("w_name not between", value1, value2, "w_name");
            return (Criteria) this;
        }

        public Criteria andW_remarksIsNull() {
            addCriterion("w_remarks is null");
            return (Criteria) this;
        }

        public Criteria andW_remarksIsNotNull() {
            addCriterion("w_remarks is not null");
            return (Criteria) this;
        }

        public Criteria andW_remarksEqualTo(String value) {
            addCriterion("w_remarks =", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksNotEqualTo(String value) {
            addCriterion("w_remarks <>", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksGreaterThan(String value) {
            addCriterion("w_remarks >", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksGreaterThanOrEqualTo(String value) {
            addCriterion("w_remarks >=", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksLessThan(String value) {
            addCriterion("w_remarks <", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksLessThanOrEqualTo(String value) {
            addCriterion("w_remarks <=", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksLike(String value) {
            addCriterion("w_remarks like", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksNotLike(String value) {
            addCriterion("w_remarks not like", value, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksIn(List<String> values) {
            addCriterion("w_remarks in", values, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksNotIn(List<String> values) {
            addCriterion("w_remarks not in", values, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksBetween(String value1, String value2) {
            addCriterion("w_remarks between", value1, value2, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_remarksNotBetween(String value1, String value2) {
            addCriterion("w_remarks not between", value1, value2, "w_remarks");
            return (Criteria) this;
        }

        public Criteria andW_stateIsNull() {
            addCriterion("w_state is null");
            return (Criteria) this;
        }

        public Criteria andW_stateIsNotNull() {
            addCriterion("w_state is not null");
            return (Criteria) this;
        }

        public Criteria andW_stateEqualTo(Integer value) {
            addCriterion("w_state =", value, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateNotEqualTo(Integer value) {
            addCriterion("w_state <>", value, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateGreaterThan(Integer value) {
            addCriterion("w_state >", value, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateGreaterThanOrEqualTo(Integer value) {
            addCriterion("w_state >=", value, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateLessThan(Integer value) {
            addCriterion("w_state <", value, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateLessThanOrEqualTo(Integer value) {
            addCriterion("w_state <=", value, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateIn(List<Integer> values) {
            addCriterion("w_state in", values, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateNotIn(List<Integer> values) {
            addCriterion("w_state not in", values, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateBetween(Integer value1, Integer value2) {
            addCriterion("w_state between", value1, value2, "w_state");
            return (Criteria) this;
        }

        public Criteria andW_stateNotBetween(Integer value1, Integer value2) {
            addCriterion("w_state not between", value1, value2, "w_state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}